projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42d71f1
)
filesystemmodel: Guard variable with correct compiler flags
author
Benjamin Otte
<otte@redhat.com>
Sat, 22 Feb 2020 05:58:32 +0000
(06:58 +0100)
committer
Benjamin Otte
<otte@redhat.com>
Sat, 22 Feb 2020 06:33:41 +0000
(07:33 +0100)
gtk/gtkfilesystemmodel.c
patch
|
blob
|
history
diff --git
a/gtk/gtkfilesystemmodel.c
b/gtk/gtkfilesystemmodel.c
index 8f382b8a3d66afa4976db4077437d4552872a3c7..e7c4bd8bbb2aca655f55775b0e54d9b209969749 100644
(file)
--- a/
gtk/gtkfilesystemmodel.c
+++ b/
gtk/gtkfilesystemmodel.c
@@
-867,6
+867,7
@@
gtk_file_system_model_set_sort_column_id (GtkTreeSortable *sortable,
{
if (sort_column_id != GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID)
{
+#ifndef G_DISABLE_CHECKS
GtkTreeDataSortHeader *header = NULL;
header = _gtk_tree_data_list_get_header (model->sort_list,
@@
-875,6
+876,7
@@
gtk_file_system_model_set_sort_column_id (GtkTreeSortable *sortable,
/* We want to make sure that we have a function */
g_return_if_fail (header != NULL);
g_return_if_fail (header->func != NULL);
+#endif
}
else
{